import request from '@/utils/request'

// 订单包裹分页查询
export function pageOrderPackage(query) {
  return request({
    url: '/order/projectOrderPackage/pageOrderPackage',
    method: 'get',
    params: query
  })
}

// 订单包裹统计
export function statOrderPackage(query) {
  return request({
    url: '/order/projectOrderPackage/statOrderPackage',
    method: 'get',
    params: query
  })
}

// 订单包裹分页查询
export function getOrderPackage(orderPackageId) {
  return request({
    url: '/order/projectOrderPackage/getOrderPackage',
    method: 'get',
    params: { orderPackageId }
  })
}
// 根据订单编号查询包裹
export function getOrderPackageByOrderNo(orderNo) {
  return request({
    url: '/order/projectOrderPackage/getOrderPackageByOrderNo',
    method: 'get',
    params: { orderNo }
  })
}

// 根据订单编号查询包裹
export function queryExpressByOrderPackageId(orderPackageId) {
  return request({
    url: '/order/projectOrderPackage/queryExpressByOrderPackageId',
    method: 'get',
    params: { orderPackageId }
  })
}
// 订单包裹商品分页查询
export function pageOrderPackageGoods(query) {
  return request({
    url: '/order/projectOrderPackage/pageOrderPackageGoods',
    method: 'get',
    params: query
  })
}
